﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestPoc
{
    class Program
    {
        static void Main(string[] args)
        {
            A a = new B();
            A aa = a;
            B b = new B();

            if (a == aa)
            {

                b.Method("s");
            }
            else
            {
            }
        }
    }
}
